﻿using System;
using DapperExtensions.Mapper;

namespace ZilLion.Service.WeChatMall.Domain.Entitys.ShopInfo
{
    public class ShopGsRelationShipEntity
    {
        /// <summary>
        ///     店铺id
        /// </summary>
        public long ShopId { get; set; }

        /// <summary>
        ///     货品id
        /// </summary>
        public long GsId { get; set; }

        /// <summary>
        ///     修改时间
        /// </summary>
        public DateTime UpdatedTime { get; set; }

        /// <summary>
        ///     修改人
        /// </summary>
        public long Updater { get; set; }
    }

    public class ShopGsRelationShipEntityMapper : ClassMapper<ShopGsRelationShipEntity>
    {
        public ShopGsRelationShipEntityMapper()
        {
            Table("shopgsrelationship");
            Map(f => f.ShopId).Column("shopid").Key(KeyType.Assigned);
            Map(f => f.GsId).Column("gsid").Key(KeyType.Assigned);
            Map(f => f.UpdatedTime).Column("updatedtime");
            Map(f => f.Updater).Column("updater");
        }
    }
}